package com.lwc.mapper.puchase;

import com.lwc.bean.EnterpriseData;
import com.lwc.bean.puchare.Purchase;
import com.lwc.common.crud.IMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

//采购单
@Mapper
public interface PurchaseMapper extends IMapper<Purchase> {

//根据年份查询最大编码
  String  getMaxcode(String year);

//导出文件
  List<Purchase> export(Map map);

  int delete(int id);

  int batchDelete(@Param(value = "ids") Integer[] ids);

  Purchase get(int id);

  int update(int id);
}
